package entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.util.Date;

/**
 * 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Newscategory ", description = "实体类")
public class Newscategory {


    @ApiModelProperty(hidden = true)
    private String id;


    @NotEmpty(message = "新闻分类名称不能为空")
    @Size(min = 2,max = 4,message = "新闻分类只能是 2～4 个字符")
    @ApiModelProperty(name = "categoryName", value = "新闻分类名称", example = "")
    private String categoryName;


    @ApiModelProperty(name = "viewNum", value = "分类浏览量", example = "")
    private Integer viewNum;


    @ApiModelProperty(name = "createUserId", value = "", example = "")
    private String createUserId;


    @ApiModelProperty(name = "updateUserId", value = "", example = "")
    private String updateUserId;


    @ApiModelProperty(name = "createTime", value = "", example = "")
    private Date createTime;


    @ApiModelProperty(name = "updateTime", value = "", example = "")
    private Date updateTime;


    @ApiModelProperty(name = "isDeleted", value = "", example = "")
    private Integer isDeleted;


    @ApiModelProperty(name = "checkStatus", value = "审核状态 0待审核 1待发布 2已删除", example = "")
    private Integer checkStatus;

}
